package com.um.springboot.starter.exception;

import com.um.springboot.starter.code.CommonCode;
import com.um.springboot.starter.utils.EnumUtil;
import lombok.Getter;

/**
 * 业务异常
 * @author renjunwei
 * @date 2020/9/19 09:37
 */
@Getter
public class BusinessException extends Exception{

    String msg;
    Object data;

    public BusinessException(String msg){
        this.msg = msg;
    }

    public BusinessException(Object data){
        this.data = data;
    }

    public BusinessException(String msg, Object data){
        this.msg = msg;
    }

}
